package controller.menuiconbar;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import view.MainFrame;

public class UpListener implements ActionListener{
	
	
	public UpListener(MainFrame f) {		
		frame = f;		
	}
	
	@Override
	public void actionPerformed(ActionEvent arg0) {
		
		if (frame.getMainPanel().getPrimary().GetConntent() == 1) {		
			
			//frame.getMainPanel().getPrimary().getDiskContent().
			
			/*String root = frame.getMainPanel().getPrimary().getRelativePath().getText();			
			System.out.println("root = " + root);
			
			File r = new File(root);
			String parent = r.getParent();
			if (parent != null) {						
				File f = new File(parent);				
				frame.getMainPanel().getPrimary().getDiskContent().CreateNewView(f);
			}*/
		}
		
	}
	
	MainFrame frame;

}
